---
--- Created by Jfeng.
--- DateTime: 2017/11/15 11:09
---

--function split(str, delimiter)
--    if str==nil or str=='' or delimiter==nil then
--        return nil
--    end
--
--    local result = {}
--    for match in (str..delimiter):gmatch("(.-)"..delimiter) do
--        table.insert(result, match)
--    end
--    return result
--end


local host = 'partyGaryServe'

if host and host == 'partyGaryServe' then
    host = 'partyGrayServe'
    print(host)

end

local hostkey = string.match(host, "-%w+")
if hostkey then
    hostkey = string.gsub(hostkey, "-", "")
end

print(hostkey)

